<?php
namespace application\models;

use system\core\Model;

class AuthModel extends Model
{
    public function authenticate( $username, $password )
    {
        $this->db->where('username', $username);
        $this->db->where('password', $password);
        return ( $this->db->rowCount('users') == 1 ) ? TRUE : FALSE;
    }
}

/* End of file AuthModel.php */
